import request from '@/utils/request'

// 查询合作单位类别列表
export function listPartnercategory(query) {
  return request({
    url: '/peoplegroup/partnercategory/list',
    method: 'get',
    params: query
  })
}

// 查询合作单位类别详细
export function getPartnercategory(categoryId) {
  return request({
    url: '/peoplegroup/partnercategory/' + categoryId,
    method: 'get'
  })
}

// 新增合作单位类别
export function addPartnercategory(data) {
  return request({
    url: '/peoplegroup/partnercategory',
    method: 'post',
    data: data
  })
}

// 修改合作单位类别
export function updatePartnercategory(data) {
  return request({
    url: '/peoplegroup/partnercategory',
    method: 'put',
    data: data
  })
}

// 删除合作单位类别
export function delPartnercategory(categoryId) {
  return request({
    url: '/peoplegroup/partnercategory/' + categoryId,
    method: 'delete'
  })
}

// 查询合作单位类别
export function getAllpartnercates() {
  return request({
    url: '/peoplegroup/partnercategory/getAllpartnercates',
    method: 'get'
  })
}

